/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.discount.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 品牌类型Entity
 * @author czp
 * @version 2018-07-08
 */
@Table(name="discount_brand_type", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="brand_type_name", attrName="brandTypeName", label="品牌类型名", queryType=QueryType.LIKE),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class DiscountBrandType extends DataEntity<DiscountBrandType> {
	
	private static final long serialVersionUID = 1L;
	private String brandTypeName;		// 品牌类型名
	
	public DiscountBrandType() {
		this(null);
	}

	public DiscountBrandType(String id){
		super(id);
	}
	
	@NotBlank(message="品牌类型名不能为空")
	@Length(min=0, max=30, message="品牌类型名长度不能超过 30 个字符")
	public String getBrandTypeName() {
		return brandTypeName;
	}

	public void setBrandTypeName(String brandTypeName) {
		this.brandTypeName = brandTypeName;
	}
	
}